static DH *get_dh2048(void)
{
    static unsigned char dhp_2048[] = {
        0x80, 0x17, 0xF7, 0x58, 0xCB, 0xE0, 0x72, 0xDC, 0x24, 0xFB,
        0xD8, 0xCE, 0xB3, 0xC1, 0x6C, 0xF6, 0x35, 0x81, 0x80, 0x34,
        0xB9, 0x59, 0xFA, 0xF5, 0xD9, 0x40, 0xCB, 0xF1, 0x63, 0x2D,
        0x1C, 0x50, 0x8D, 0xCB, 0x63, 0xC3, 0xD2, 0xB4, 0x05, 0x71,
        0x5D, 0x17, 0xFE, 0x7B, 0xE1, 0xEC, 0x28, 0xD8, 0xB4, 0x38,
        0x54, 0xB2, 0xFF, 0x16, 0x64, 0x27, 0x94, 0xAA, 0x8E, 0x47,
        0x7A, 0xE0, 0x16, 0xA8, 0x6C, 0x64, 0xB3, 0x6C, 0x9C, 0xC0,
        0xB0, 0xFC, 0xB1, 0x51, 0x40, 0xA9, 0xF2, 0x26, 0x42, 0xC8,
        0x4B, 0x79, 0x1E, 0x0E, 0xD5, 0x09, 0xB2, 0x4C, 0x0B, 0xD2,
        0xDB, 0xCA, 0x25, 0xB7, 0x33, 0x73, 0xB1, 0x09, 0x1B, 0x79,
        0x67, 0xF8, 0x3B, 0x14, 0x54, 0x82, 0x4A, 0x75, 0x70, 0xD8,
        0xB2, 0x5E, 0xE1, 0x71, 0xBC, 0x7F, 0x3C, 0xB6, 0xF7, 0x24,
        0x8A, 0x7E, 0xA4, 0xED, 0x90, 0x8D, 0x97, 0x3A, 0x1D, 0xC1,
        0x0D, 0xEE, 0x39, 0x46, 0x61, 0x4C, 0x47, 0x6B, 0xF5, 0x21,
        0x79, 0xD4, 0x21, 0xEB, 0xD1, 0x21, 0x4F, 0xF6, 0x50, 0x5B,
        0xC9, 0x06, 0xCC, 0xF7, 0xE5, 0x15, 0xF2, 0x26, 0x65, 0x10,
        0x84, 0xF1, 0x89, 0x35, 0x4C, 0xA5, 0xA4, 0x53, 0x42, 0xDD,
        0xC8, 0x67, 0x3C, 0xD0, 0xC5, 0x99, 0x74, 0x6D, 0x60, 0xEC,
        0x07, 0xC9, 0xF2, 0x73, 0xB6, 0x90, 0x12, 0xCD, 0xA0, 0xEA,
        0xE8, 0x92, 0x6C, 0xA6, 0xDC, 0x34, 0x98, 0xCC, 0xB0, 0xFA,
        0xFA, 0x32, 0xA1, 0x90, 0xAC, 0x43, 0x70, 0xAF, 0xF7, 0x99,
        0x8B, 0x4C, 0x41, 0xE3, 0xEE, 0x39, 0x04, 0xD3, 0xB5, 0x82,
        0x43, 0x87, 0x57, 0xE1, 0x95, 0x08, 0x6A, 0x3D, 0x9B, 0xBC,
        0x13, 0x79, 0x1B, 0x11, 0x85, 0x9C, 0xB3, 0xB5, 0xFC, 0x45,
        0xD1, 0x33, 0x54, 0x68, 0x15, 0x50, 0x1E, 0x16, 0x37, 0xF9,
        0x29, 0xD8, 0x1A, 0x66, 0x7B, 0xCB
    };
    static unsigned char dhg_2048[] = {
        0x02
    };
    DH *dh = DH_new();
    BIGNUM *p, *g;

    if (dh == NULL)
        return NULL;
    p = BN_bin2bn(dhp_2048, sizeof(dhp_2048), NULL);
    g = BN_bin2bn(dhg_2048, sizeof(dhg_2048), NULL);
    if (p == NULL || g == NULL
            || !DH_set0_pqg(dh, p, NULL, g)) {
        DH_free(dh);
        BN_free(p);
        BN_free(g);
        return NULL;
    }
    return dh;
}
-----BEGIN DH PARAMETERS-----
MIIBCAKCAQEAgBf3WMvgctwk+9jOs8Fs9jWBgDS5Wfr12UDL8WMtHFCNy2PD0rQF
cV0X/nvh7CjYtDhUsv8WZCeUqo5HeuAWqGxks2ycwLD8sVFAqfImQshLeR4O1Qmy
TAvS28oltzNzsQkbeWf4OxRUgkp1cNiyXuFxvH88tvckin6k7ZCNlzodwQ3uOUZh
TEdr9SF51CHr0SFP9lBbyQbM9+UV8iZlEITxiTVMpaRTQt3IZzzQxZl0bWDsB8ny
c7aQEs2g6uiSbKbcNJjMsPr6MqGQrENwr/eZi0xB4+45BNO1gkOHV+GVCGo9m7wT
eRsRhZyztfxF0TNUaBVQHhY3+SnYGmZ7ywIBAg==
-----END DH PARAMETERS-----
